<?php
class BoxFoodPlacePhoto extends TRepeaterItemRenderer
{
	public function onDataBinding($param)
	{
		parent::onDataBinding($param);		
		if (count($this->Data)>0)
		{
			$currentYear = date('Y', $this->Data->CreateDate);
			$currentMonth = date('m', $this->Data->CreateDate);
			$this->imgFoodPlacePhoto->ImageUrl = $this->Request->UrlManagerModule->UrlPrefix."/useruploads/photos/food-place/".$currentYear."/".$currentMonth."/".$this->Data->PhotoFile;		
		}		
	}
}
?>